<?php 

if(!isset($page)) $page = 'home'; 

if( true == $this->session->userdata('admin_logged') )
{

?>

<div id='menu_line' class='menu_line'>
	<div id="menu_items" class="menu_items">
        
       
        
        <a style='float:right; margin-left: 10px;' href='<?=LINK_URL?>login/logout' class="menu_item logout" title="<?=lang('logout')?>"><img src="<?php echo base_url();?>img/icons/Exit.png"/> </a>
        <a style='float:right; margin-right: 10px;' href='<?=base_url()?>' target="_blank" class="menu_item"><img src="<?php echo base_url();?>img/icons/Online.png"/> <?php echo lang('view_site');?></a>
	</div>
</div>

  <div id="contents" class='contents'>
    <div class="right">
      <label><?php $sel_lang = $this->session->userdata('admin_lang'); echo lang('language'); ?>:</label>
      <select name="change_lang" id="change_lang" class="text ui-widget-content ui-corner-all" >
        <option value="en" <?php echo ($sel_lang=='en')?"selected='selected'":"";  ?> >English</option>
        <option value="de" <?php echo ($sel_lang=='de')?"selected='selected'":"";  ?> >Deutsch</option>
        
      </select>
       
    </div>
    <br/>
    <br/>
    
      <div class="right ">
       <div class="num_online">
       <span><?php echo lang('online'); ?>:</span> <span id="num_online" >  </span> <?php echo lang('user_s'); ?>          
       </div>
    </div> 
    
    
    
<?php } else { ?>
<div id="contents" class='contents'>
    
<?php } ?>